﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Transcend.FileUploader
{
	public partial class OverrideOptionsDialog : Form
	{

		public OverrideSetting WindowResult { get; set; }

		public OverrideOptionsDialog(string title, string message)
		{
			InitializeComponent();
			this.Text = title;
			Tb_Message.Text = message;
			WindowResult = new OverrideSetting();
		}

		private void Bn_OK_Click(object sender, EventArgs e)
		{
			WindowResult.NoConfirmAnyMore = Cb_NoConfirmAnyMore.Checked;
			WindowResult.ShouldOverride = true;
			this.Close();
		}

		private void Bn_Cancel_Click(object sender, EventArgs e)
		{
			WindowResult.NoConfirmAnyMore = Cb_NoConfirmAnyMore.Checked;
			WindowResult.ShouldOverride = false;
			this.Close();
		}

	}

}
